import React, { Suspense } from 'react';
import './App.css';

import { useRoutes } from "react-router-dom"
import routes from './router/index';

function App() {
  return (
    <div className="app">
      <Suspense fallback={<div>loading...</div>}>
        {
          useRoutes(routes)
        }
      </Suspense>

    </div>
  );
}

export default App;
